package com.woniuxy.microsysserver.feign;
import com.woniuxy.microsysserver.feignfullback.FixedTimeFullBackFactary;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
//定期接口
@FeignClient(value = "cd-finance-micro-fixeddeposit-server",fallbackFactory = FixedTimeFullBackFactary.class)
public interface FixedTimeFeign {
    @PostMapping(value = "/regular/getMemberEarning" , produces = MediaType.APPLICATION_JSON_VALUE)
    String selectIdByName(@RequestParam(value = "username") String username);
}
